
package com.magee.test
import android.content.Intent
import android.os.Bundle
import android.widget.Toast
import androidx.appcompat.app.AppCompatActivity
import com.immoc.router.annotations.Destination
import com.magee.router.router_runtime.Router
import kotlinx.android.synthetic.main.activity_main.*
@Destination(url = "router/MainActivity",description = "第一个界面")
class MainActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)
        magee.setOnClickListener {
            Router.go(this,"router/SecondActivity")
        }
    }
}